home *** CD-ROM | disk | FTP | other *** search
- .key item/a
- if not "$<item>" eq "$cr"
- echo "It is not here to be acquired."
- skip end
- endif
- if "<item>" eq "bookshelf"
- echo "You cannot take the <item>."
- skip end
- endif
- if "<item>" eq "moonroot"
- if "$sharp" eq "blunt"
- echo "You haven't got the correct tool."
- skip end
- endif
- if not "$rock" eq "-1"
- echo "You haven't got the correct tool."
- skip end
- endif
- endif
- if "<item>" eq "powerplant"
- if "$sharp" eq "blunt"
- echo "You haven't got the correct tool."
- skip end
- endif
- if not "$rock" eq "-1"
- echo "You haven't got the correct tool."
- skip end
- endif
- endif
- if "<item>" eq "dreamberry"
- if "$sharp" eq "blunt"
- echo "You haven't got the correct tool."
- skip end
- endif
- if not "$rock" eq "-1"
- echo "You haven't got the correct tool."
- skip end
- endif
- endif
- if "<item>" eq "door"
- echo "You cannot take the <item>."
- skip end
- endif
- if "<item>" eq "lock"
- echo "You cannot take the <item>."
- skip end
- endif
- if "<item>" eq "princess"
- echo "You cannot take the <item>."
- skip end
- endif
- if "<item>" eq "guard"
- echo "You cannot take the <item>."
- skip end
- endif
- if "<item>" eq "tree"
- echo "You cannot take the <item>."
- skip end
- endif
- if "<item>" eq "water"
- echo "You cannot take the <item>."
- skip end
- endif
- if "<item>" eq "boulder"
- echo "You cannot take the <item>."
- skip end
- endif
- echo "You have now got the <item>."
- setenv "<item>" -1
- lab end
-